import Axios from 'axios'

export const reg = async (parameter) => {
    const { storeName,
        licenseNumber,
        licenseImage,
        licenseSite,
        locate,
        city,
        legalerson,
        tel,
        headImage,
        feature,
        vipGrade,
        brokerage,
        clerkType,
        status,
        admin
     } = parameter;
        // console.log( storeName,
        //     licenseNumber,
        //     licenseImage,
        //     licenseSite,
        //     locate,
        //     city,
        //     legalerson,
        //     tel,
        //     headImage,
        //     feature,
        //     vipGrade,
        //     brokerage,
        //     clerkType);
        

    let res = await Axios({
        method: "post",
        url: "/ip/shopUser/reg",
        data: {
            storeName,
            licenseNumber,
            licenseImage,
            licenseSite,
            locate,
            city,
            legalerson,
            tel,
            headImage,
            feature,
            vipGrade,
            brokerage,
            clerkType,
            status,
            admin
        }
    })    
    return res.data
}